<extend name="Public/List/Common"/>

    
        <block name="pageHeader">
            <include file="Public/List/Header/header.search.add.batchDel" add-title="添加"/>
        </block>
    


<block name="pageContent">
    <div class="bjui-pageContent tableContent">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th>
                            编号                        </th><th>
                            商家名称                        </th><th>
                            状态                        </th><th>
                            排序                        </th><th>
                            创建时间                        </th>                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            
                <volist name="businessList" id="vo">
            
            <tr>
                                            <td>
                                {$vo.id}
                            </td>                            <td>
                                {$vo.name}
                            </td>                            <td>
                                {$vo.status|columnToName="DEFAULE_STATUS",###}
                            </td>                            <td>
                                {$vo.sort}
                            </td>                            <td>
                                {$vo.create_time|time_format}
                            </td>                <td>
                    <a href="{:U('edit?id='.$vo['id'])}" class="btn btn-green"
                                                    data-toggle="dialog"  data-id="dialog-normal" data-mask="true"                       data-title="编辑">编辑</a>
                    <a href="{:U('toggleStatus?id='.$vo['id'])}" class="btn btn-{$vo['status']==0?'blue':'red'}"
                            data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">{$vo['status']==0?'启用':'禁用'}</a>                    <a href="{:U('del?id='.$vo['id'])}" class="btn btn-red"
                       data-toggle="doajax">删除</a>
                </td>
            </tr>
            
                </volist>
            
            </tbody>
        </table>
    </div>
</block>